<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateTmpSettingTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('tmp_setting', function (Blueprint $table) {
            $table->smallIncrements('id');
            $table->string('setting_type', 20)->default('')->comment('设置类型');
            $table->string('setting_value', 10)->default('')->comment('设置值');
            $table->timestamps();
            $table->unsignedTinyInteger('flag')->default(1)->comment('状态');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('tmp_setting');
    }
}
